package com.plian.system.entity.sys.warning;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("sys_warning_factor_extension")
@ApiModel(value = "预警因子 配置扩展表")
public class WarningFactorExtension implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "因子id")
    private Long factorId;

    @ApiModelProperty(value = "年份")
    private Integer factorYear;

    @ApiModelProperty(value = "取值类型 1公式 2原值")
    private Integer valueType;

    @ApiModelProperty(value = "公式")
    private String formula;

    @ApiModelProperty(value = "快报字典code")
    private String bulletinCode;

    @ApiModelProperty(value = "快报取值类型 1本月 2本年累计 3去年同期 4去年年末累计")
    private Integer bulletinValueType;

    @ApiModelProperty(value = "sheetId")
    private String sheetId;

    @ApiModelProperty(value = "表名")
    private String sheetName;

    @ApiModelProperty(value = "行")
    private Integer lineNumber;

    @ApiModelProperty(value = "列")
    private Integer columnNumber;

    @ApiModelProperty(value = "备注")
    private String remarks;
}
